package com.wash.shoes.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wash.shoes.entity.CustomerPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 客户 Mapper 接口
 * </p>
 *
 * @author ljg
 * @since 2024-08-28
 */
public interface CustomerMapper extends BaseMapper<CustomerPo> {

    /**
     * @author lijianguo
     * @Date 28/08/2024 10:57 pm
     * 分页列表
     **/
    List<CustomerPo> pageList(@Param("page") Page page, @Param("customerPo") CustomerPo customerPo);

    /**
     * @author lijianguo
     * @Date 22/09/2024
     * 请输入方法的简介
     **/
    CustomerPo getByPhone(@Param("receiverMobile") String receiverMobile);

    /**
     * @author lijianguo
     * @Date 29/11/2024
     * 获取用户
     **/
    CustomerPo getByOpenId(@Param("openId") String openId);

    /**
     * @param code
     * @return
     */
    CustomerPo getByInviteCode(@Param("code") String code);

    /**
     *
     * @param dyOpenId
     * @return 查询用户
     */
    CustomerPo getByDyOpenId(@Param("dyOpenId") String dyOpenId);
}
